<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景图片</title>
    <style>
        .no-rt {
            width: 300px;
            height: 300px;
            background-image: url(images/王者logo.png);
            /* 背景图片不平铺   */
            background-repeat: no-repeat;
            /* background-position: 方位名词 */
            background-position: center;
            background-color: skyblue;

        }

        .rt {
            width: 300px;
            height: 300px;
            background-image: url(images/王者logo.png);
            /* 背景图片不平铺   */
            background-repeat: no-repeat;
            /* background-position: 方位名词 */
            /* background-position: center top; */
            /* 可以省略center，效果一样，因为只有y轴有top */
            background-position: top;
            background-color: pink;

        }

        .rt1 {
            width: 300px;
            height: 300px;
            background-image: url(images/王者logo.png);
            /* 背景图片不平铺   */
            background-repeat: no-repeat;
            /* background-position: 方位名词 */
            background-position: center right;
            /* 如果是方位名词 center right 或 right center 效果是等价的，跟顺序无关 */
            background-color: rgb(31, 181, 149);

        }
    </style>
</head>

<body>
    <div class="no-rt"></div>
    <div class="rt"></div>
    <div class="rt1"></div>
</body>

</html>